using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace UserManagement.Models;

[Table("t_file_record")]
public class FileRecord
{
    [Key]
    [Column("id")]
    public long Id { get; set; }

    [Column("file_name")]
    [StringLength(100)]
    public string FileName { get; set; } = null!;

    [Column("stored_file_name")]
    [StringLength(64)]
    public string StoredFileName { get; set; } = null!;

    [Column("content_type")]
    [StringLength(100)]
    public string ContentType { get; set; } = null!;

    [Column("upload_time", TypeName = "datetime")]
    public DateTime? UploadTime { get; set; } = DateTime.Now;
}